#include <main.h>
#include <stdio.h>
#include <parser.h>
#include <stdlib.h>
#include <lexer.h>

extern FILE *tape;
extern FILE *pfOutput;

int main(int argc, char* argv[])
{
	if (argc < 2){
	  fprintf(stderr, " MyPas usage:\n\t<bin_name> <input_file>\n");
	  exit(-1);
	}
	if( !(tape = fopen(argv[1], "r")) ){
	  tape = stdin;
	}
	lookahead = gettoken();
	program();
	return 0;
}